package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.CustomerUser;
import com.uduemc.biso.core.feign.CustomerFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class CustomerUserFeignFallback implements FallbackFactory<CustomerFeign> {

	@Override
	public CustomerFeign create(Throwable cause) {
		return new CustomerFeign() {

			@Override
			public RestResult getUserByUsername(String username) {
				return null;
			}

			@Override
			public RestResult findUserOne(Long id) {
				return null;
			}

			@Override
			public RestResult updateUserById(CustomerUser customerUser) {
				return null;
			}

			@Override
			public RestResult updateUserByIdSelective(CustomerUser customerUser) {
				return null;
			}

			@Override
			public RestResult findRoleById(Long id) {
				return null;
			}

		};
	}

}
